home *** CD-ROM | disk | FTP | other *** search
INSTALL Professional project | 1996-04-10 | 14.3 KB | 698 lines |
- /*
- * FILE: INSTALL.DAT
- *
- * DESC:
- * Installation script for the Datapath ORION-64 Driver Software.
- */
-
- @DefineProject
- @Name = "Datapath ORION-64 VP PCI Driver Software"
- @Version = "3.10"
- @Subdir = "\\"
- @OutDrive = C
- @EndProject
-
- @DefineVars
- @Drive @OrionDrive = @OutDrive
- @Dir @Orion = "\\ORION-64\\"
- @Drive @WDrive = @OutDrive
- @Dir @Windows = "\\WINDOWS\\"
- @Dir @MDLApps = "\\Ustation\\mdlapps\\"
- @Integer @IsDual = 0
- @EndVars
-
- @Display
- @Cls
-
-
- DATAPATH
-
- Orion-64 VP PCI Driver software
- Install Disk
-
- Version @Version
-
-
-
-
-
-
-
-
-
-
- @Pause
-
- @Cls
-
- This program will install software to help you set up your ORION-64.
- It will also optionally install an accelerated, high resolution device
- driver for an application, such as AutoCAD or Windows. These drivers
- exploit the power of the ORION-64's graphics accelerator to run
- the applications faster. The installation may be run again to add
- accelerated, high resolution device drivers for more applications.
-
- Please note that the ORION-64 is 100% VGA and VESA compatible,
- No special drivers are required to run applications using VGA or VESA.
-
-
-
-
-
-
-
- @Pause
- @Cls
-
- This program will ask you a number of questions.
-
- Each question has a default answer.
- If the default answer is correct, press the ENTER key.
- Otherwise, type the answer and then press the ENTER key.
-
- If you make a mistake while typing, press the BACKSPACE key
- and then retype the answer.
-
- You may press the [Esc] key at any time to abort the installation.
-
- Note, that if you abort the installation part way through, the whole
- installation should be repeated. This is because the selected files
- are not copied until the end of the installation.
-
-
- @Pause
- @EndDisplay
-
- @GetOption
- Do you wish to install the ORION-64 setup and utility programs now?
-
-
-
-
-
-
- If this is a first time installation, you should answer Yes.
- This installs the initialization programs and allows you to
- optimally configure the ORION-64 to your monitor.
-
- If you answer No, the ORION-64 will run with a default setup.
-
-
-
-
-
-
-
- Use the [Up Arrow] & [Down Arrow] keys to move the bar
- to the required response and then press the [Enter] key.
- @Option 600 = "Yes"
- @Option 601 = "No"
- @EndOption
-
- @If (600 [= @Option) /* ( */
- @IsDual = @Spawn("s3isdual")
-
- @GetOutDrive @OrionDrive
- @Suppress A
- @Suppress B
- @Cls
- On which disk drive do you wish to install the ORION-64 setup
- and utility programs:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive required and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir @Orion
- @Cls
- Now you need to specify the destination directory. The
- directory is the location on your disk where the ORION-64
- setup and utility programs will be installed:
-
- @PROMPT = " Which directory ? "
- @EndSubdir
-
- @Endif /* 600 ie installing initialization programs ) */
-
- @DefineVars
- @Drive @OriWin31Drive = @OrionDrive
- @EndVars
-
- @GetOption
- Please select the device driver you wish to install:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the device driver required and then press the [Enter] key.
- @Option 10 = "MS Windows 3.1, V1.61-03"
- @Option 9 = "MicroStation "
- @Option 6 = "ADIMagic for AutoCAD Release 13"
- @Option 3 = "ADIMagic for AutoCAD Release 12"
- @Option 1 = "ADIMagic for AutoCAD Release 11"
- @Option 2 = "ADIMagic for AutoCAD Release 10 386"
- @Option 12 = "The Icon Editor for ADIMagic"
- @Option 605 = "NONE"
- @EndOption
-
- @If (605 /* no drivers chosen */ [! @Option) /* ( */
-
- @DefineVars
- @If (2 [= @Option || 1 [= @Option || 3 [= @Option || 6 [= @Option)
- @Qstring @Application = "AutoCAD"
- @ElseIf (9 [= @Option)
- @Qstring @Application = "MicroStation"
- @ElseIf (10 [= @Option)
- @Qstring @Application = "MS Windows 3.1"
- @Dir @OriWin31 = "@Orion\\WIN31\\"
- @ElseIf (12 [= @Option)
- @Qstring @Application = "the Icon Editor"
- @Endif
- @EndVars
-
- @If (10 [= @Option) /* ( */
- @GetOutDrive @WDrive
- @Suppress A
- @Suppress B
- @Cls
- On which disk drive is Windows installed:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir @Windows
- @Cls
- @PROMPT = " In which directory is Windows installed ? "
- @EndSubdir
-
- @GetOutDrive @OriWin31Drive
- @Suppress A
- @Suppress B
- @Cls
- Onto which disk drive should the ORION-64 Windows drivers be copied:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive required and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir @OriWin31
- @Cls
- Now you need to specify the destination directory. The
- directory is the location on your disk where the ORION-64
- Windows 3 device drivers will be installed.
-
- This must not be the directory where Windows has been installed.
-
- REMEMBER this directory - you may need to tell the Windows setup program
- when you complete the installation later!
-
- @PROMPT = " Which directory ? "
- @EndSubdir
-
- @Else /* 10 )( */
- @DefineVars
- /* define defaults to avoid errors later */
- @Dir @OriWin31 = "c:\\"
- @EndVars
-
- @GetOutDrive
- @Suppress A
- @Suppress B
- @Cls
- On which disk drive do you wish to install the device driver:
-
-
-
-
-
-
-
-
-
-
-
-
- @If (9 [= @Option || 3 [= @Option || 6 [= @Option)
- This MUST be the same disk drive as the one on which
- @Application has been or will be installed.
- @Endif
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the disk drive required and then press the [Enter] key.
- @EndOutDrive
-
- @GetSubdir
- @If (3 /* release 12 */ [= @Option) /* ( */
- @Default = "\\ACAD\\DRV\\"
- @ElseIf (6 /* release 13 */ [= @Option) /* ( */
- @Default = "\\ACADR13\\DOS\\DRV\\"
- @ElseIf (9 /* MicroStation */ [= @Option)
- @Default = "\\USTATION\\DRIVERS\\"
- @ElseIf (12 /* ADIMagic Icon Editor */ [= @Option)
- @Default = "\\ICONEDIT\\"
- @Else /* )( */
- @Default = "\\ADIMAGIC\\"
- @Endif /* not release 12 ) */
- @Cls
- Now you need to specify the destination directory. The
- directory is the location on your disk where the device
- driver will be installed.
- @If (9 [= @Option || 3 [= @Option || 6 [= @Option)
- This MUST be the same directory where @Application
- has been or will be installed.
- @Endif
-
- @PROMPT = " Which directory ? "
- @EndSubdir
-
- @If (9 /* MicroStation */ [= @Option)
- @GetSubdir @MDLApps
- @Cls
- Now you need to specify the directory where you want
- your MicroStation MDL utility to be installed.
-
- @PROMPT = " Which MDL directory? "
- @EndSubdir
- @Endif /* ) */
-
- @If ("\\@Subdir" == "\\") /* ( */
- /* do nothing */
- @ElseIf (@Exists "@OutDrive:\\@Subdir") /* )( */
- /* do nothing */
- @Else /* )( */
- @GetOption
- The directory @Subdir doesn't exist on disk drive @OutDrive.
- Shall I create it?
-
-
-
-
- If you answer Yes, the directory will be created & the necessary
- files copied into it. Note however, that if the application has
- not yet been installed, doing so may overwrite this directory. If
- you are not sure answer No.
-
- Answering No will abort the installation.
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the required response and then press the [Enter] key.
- @Option 620 = "Yes"
- @Option 621 = "No"
- @EndOption
-
- @If (621 [= @Option)
- @Display
- @Cls
- Aborting the installation as requested.
-
- No files have been copied and your selections have been discarded.
-
- Remember to re-commence the installation when you've installed your
- application.
-
-
-
-
-
-
-
-
-
-
-
-
- @Pause
- @Abort
- @Endif
- @Endif /* ) */
-
- @If ((3 /* release 12 */ [= @Option) || (6 /* release 13 */ [= @Option)) /* ( */
- @Display
- @Cls
- In order to use ADIMagic you must reconfigure AutoCAD by running
- AutoCAD with the -r option, ie:
-
- `acad -r'
-
- or from within AutoCAD:
-
- type _config or select config from the file menu
-
- then choose the
-
- `Configure video display'
-
- option and select
-
- `Datapath ADIMagic for S3 multi mode ADI V4.2 driver'.
-
-
- @Pause
- @EndDisplay
-
- @ElseIf (1 /* R11 */ [= @Option || 2 /* R10 386 */ [= @Option) /* )( */
-
- @Display
- @Cls
- In order to use ADIMagic you must reconfigure AutoCAD by choosing the
-
- `Configure video display'
-
- option and selecting
- @If (1 /* release 11 */ [= @Option) /* ( */
- `ADI P386 V4.0/4.1 display'.
- @ElseIf (2 /* release 10 386 */ [= @Option) /* )( */
- `ADI P386 display'.
- @Endif /* 2 release 10 386 ) */
-
-
-
-
-
-
-
-
-
-
- @Pause
- @EndDisplay
- @Endif /* 3 release 12 ) */
-
- @Endif /* 10 ) */
-
- @GetOption
- Do you wish to view the DOC file for the driver you have just installed?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the
- bar to the required response and then press the [Enter] key.
- @Option 622 = "Yes"
- @Option 623 = "No"
- @EndOption
-
- @Else /* 605 no drivers chosen )( */
- @DefineVars
- /* define defaults to avoid errors later */
- @Dir @OriWin31 = "c:\\"
- @EndVars
- @Endif /* 605 no drivers chosen ) */
-
- @DefineDisk
- @Label = "Disk 1 of 1"
-
- @If (600 [= @Option) /* install initialization programs ( */
- @BeginLib UTILITY.KDC
- @File *.* @Out @OrionDrive:\\@Orion\\*.*
- @EndLib
- @Endif /* 600 ie install initialization programs ) */
-
- @If (9 [= @Option)
- @BeginLib PMUSTN.KDC
- @File *.*
- @EndLib
-
- @BeginLib BIRDSEYE.KDC
- @File *.* @Out @OutDrive:\\@MDLApps\\*.*
- @EndLib
- @Endif
-
- @If (2 [= @Option || 1 [= @Option || 3 [= @Option || 6 [= @Option)
-
- @BeginLib ADICOMM.KDC
- @File *.*
- @EndLib
-
- @If (3 /* R12 */ [= @Option || 6 /* R13 */ [= @Option)
- @BeginLib ADIP42.KDC
- @File *.*
- @EndLib
-
- @ElseIf (2 /* R 10 386 */ [= @Option)
- @BeginLib ADIP40.KDC
- @File *.*
- @EndLib
-
- @ElseIf (1 /* R 11 */ [= @Option)
- @BeginLib ADIP41.KDC
- @File *.*
- @EndLib
- @Endif
-
- @Elseif (12 /* Icon Editor */ [= @Option) /* )( */
-
- @BeginLib ICONEDIT.KDC
- @File *.*
- @EndLib
- @BeginLib BUILD.KDC
- @File *.* @Out build\\*.*
- @EndLib
- @BeginLib ICONS.KDC
- @File *.* @Out icons\\*.*
- @EndLib
-
- @Endif /* ) */
-
-
- @If (10 [= @Option) /* ( */
- @BeginLib ORI_WIN.KDC
- @File *.* @Out @OriWin31Drive:\\@OriWin31\\*.*
- @EndLib
- @BeginLib WINDOWS.KDC
- @File *.* @Out @OriWin31Drive:\\@OriWin31\\*.*
- @File *.* @Out @WDrive:\\@Windows\\*.*
- @EndLib
- @BeginLib WIN_SYS.KDC
- @File *.* @Out @OriWin31Drive:\\@OriWin31\\*.*
- @File *.* @Out @WDrive:\\@Windows\\system\\*.*
- @EndLib
- @BeginLib WIN_BITS.KDC
- @File *.* @Out @OriWin31Drive:\\@OriWin31\\*.*
- @EndLib
- @Endif /* 10 ) */
-
- @EndDisk
-
- @SetAutoexec
- @AskOverwrite
-
- @If (600 [= @Option) /* ( */
- @Path "@OrionDrive:\\@Orion"
- @If (@IsDual == 1)
- @Verbatim "@OrionDrive:\\@Orion\\Pciinit -a"
- @Else
- @Verbatim "@OrionDrive:\\@Orion\\Pciinit"
- @Endif
- @Endif /* 600 ie installing initialization programs ) */
-
- @If (2 /* release 10 */ [= @Option) /* ( */
- @SetReplace("DSPADI", "@OutDrive:\\@Subdir\\ADIMAGIC.EXP")
- @Elseif (1 /* release 11 */ [= @Option) /* ( */
- @SetReplace("DSPADI", "@OutDrive:\\@Subdir\\RCMAGIC.EXP")
- @Endif /* ) */
- @EndAutoexec
-
- @Finish
- @ChDrive @OutDrive
- @ChDir "@Subdir"
- @If (10 [= @Option) /* ( */
- @ChDrive @WDrive
- @ChDir "@Windows"
- @Spawn("@InDrive:winwall orion.bmp")
-
- /* add a [display] section to system.ini if it does not exist! */
- @Spawn("@InDrive:windisp")
- @Copy("@OriWin31Drive:\\@OriWin31\\orion.bmp", "orion.bmp")
-
- @Spawn("@InDrive:mkgroupf orion.grp \"Datapath Orion\" OrionMode @OriWin31Drive:\\@OriWin31\\ORIONMOD.EXE")
- @Spawn("@InDrive:addgroup @WDrive:\\@Windows\\ORION.GRP")
-
- @ChDrive @OriWin31Drive
- @ChDir "@OriWin31"
- /* create 1sttime.bat to complete installation */
- @Delete("1sttime.bat")
- @Write("1sttime.bat", "wt", "@WDrive:\n")
- @Write("1sttime.bat", "at", "cd @Windows\n")
- @Write("1sttime.bat", "at", "setup\n")
- @Write("1sttime.bat", "at", "cd \\\n")
-
- /* Build oemsetup.inf to match BIOS on installed ORION-64 */
- @ChDrive @OriWin31Drive
- @ChDir "@OriWin31"
-
- @Spawn("@OriWin31Drive:\\@OriWin31\\mk_oem TRIO64VP")
-
- /* copy oemsetup.inf into Windows System ... */
- @ChDrive @WDrive
- @ChDir "@Windows\\system"
- @Spawn("@InDrive:newoem Orion @OriWin31Drive:\\@OriWin31\\oemsetup.inf")
- @Cls
- @ChDrive @OriWin31Drive
- @ChDir "@OriWin31"
-
- @Endif /* 10 ) */
- @If (622 /* view DOC file */ [= @Option)
- @Cls
- The next screen shows the ORION.DOC file for @Application.
- Use the [Up], [Down], [PageUp], [PageDown] keys to read the file,
- and press [Esc] to finish.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @Pause
- @Cls
- @Spawn("@InDrive:browse orion.doc")
- @Endif
- @ChDrive @OrionDrive
- @ChDir "\\"
- @Cls
-
- @If (600 [= @Option || 605 [! @Option)
- @ChDrive @OrionDrive
- @ChDir "@Orion"
- @Spawn("pciscan.exe")
- @ChDir "\\"
- @Endif
-
- @If (10 [= @Option) /* ( */
- @ChDrive @OriWin31Drive
- @ChDir "@OriWin31"
-
- IMPORTANT! In order for Windows to function correctly you must install
- the new drivers with Windows setup. This is essential even if you have
- already installed an earlier version of the ORION-64 Windows driver.
-
- In Windows setup select the Display: line and then choose an ORION-64
- display from the menu.
-
- If prompted for a driver disk, enter the path of the ORION-64 directory.
- (ORION-64 directory = @OriWin31Drive:@OriWin31)
-
- Windows setup will be run next. The installation will then be complete.
-
- Note: For the latest changes to the manual check the file
- @OriWin31Drive:@OriWin31\Orion.DOC.
-
- @FlushKeyboard()
- @Pause
- @Execute "COMMAND.COM", "/E:1536 /C 1STTIME"
- @Endif /* 10 ) */
-
- You have now completed the software installation.
- Please remove the floppy disk and store it in a safe place.
-
- If you have not yet fitted the ORION-64 into your computer,
- switch off and do so.
-
- Please now re-boot your computer.
-
-
-
- Thank you for purchasing the DATAPATH ORION-64.
-
-
-
-
-
-
-
- @Pause
- @EndIf
- /* setup utilities || no drivers chosen ) */
- @EndFinish
-